realtek: pcs: add init_serdes_common hook
authorJonas Jelonek <[email protected]>
Fri, 7 Nov 2025 12:16:45 +0000 (12:16 +0000)
committerHauke Mehrtens <[email protected]>
Mon, 8 Dec 2025 23:27:57 +0000 (00:27 +0100)
commit328b970ecd8d43fe7ce73e23e584c984ee820a03
tree754642290ca9ec73944178be712b20b66c78432b
parenta703b9100e325596fcf870dcd137a4df4737534d
realtek: pcs: add init_serdes_common hook

Add a new hook called 'init_serdes_common' to be able to perform
initialisations or anything else subject to all SerDes. This hook is
called in the end of 'rtpcs_probe' after everything else is done.

This is meant primarily to support the transition of RTL83XX from PHY
driver to PCS driver. Thus, it may be removed later again or kept if
there is sufficient need for this.

Signed-off-by: Jonas Jelonek <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20876
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c